<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>

<body>

   <form action="form"  method="post">
       <input type="text" name="username" >
       <input type="text" name="password">
       <input type="submit" value="click">
   </form>

   <div>name:${form.username}</div>
   <div>passwor:${form.password}</div>

</body>

</html>